//
// Created by Javery Chiang on 2024/3/23.
//
#include <iostream>
#include <ranges>

auto is_even(int i) {
    return i % 2 == 0;
}

int main() {
    auto numbers = std::views::iota(1, 100000) | std::views::filter(is_even);

    for (const auto &item: numbers)
        std::cout << item << std::endl;

}